package com.fand.configuration.service;

import org.springframework.cache.annotation.CacheEvict;

import com.fand.common.service.CommonService;
import com.fand.configuration.dao.ConfigurationDao;

/**
 * 配置服务
 * 
 * @author yaoHT
 */
public class DefaultConfigurationService implements ConfigurationService {
	private CommonService commonService;
	
	private ConfigurationDao configurationDao;
	
	private DictionaryService dictionaryService;
	
	private LanguageService languageService;
	
	private VariableService variableService;
	
	@Override
	public CommonService getCommonService() {
		return this.commonService;
	}
	
	@Override
	public DictionaryService getDictionaryService() {
		return this.dictionaryService;
	}
	
	@Override
	public LanguageService getLanguageService() {
		return this.languageService;
	}
	
	@Override
	public VariableService getVariableService() {
		return this.variableService;
	}
	
	@Override
	@CacheEvict(value = ConfigurationService.CACHE_NAME, allEntries = true)
	public void reload() {
	}
	
	public void setCommonService(final CommonService commonService) {
		this.commonService = commonService;
	}
	
	public void setConfigurationDao(final ConfigurationDao configurationDao) {
		this.configurationDao = configurationDao;
	}
	
	public void setDictionaryService(final DictionaryService dictionaryService) {
		this.dictionaryService = dictionaryService;
	}
	
	public void setLanguageService(final LanguageService languageService) {
		this.languageService = languageService;
	}
	
	public void setVariableService(final VariableService variableService) {
		this.variableService = variableService;
	}
}